package com.meichis.yndms.vm;

import android.app.Application;
import android.content.Context;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;

/**
 * @Author sxx
 * @Description
 */
public class UploadProgressVM extends AndroidViewModel {

    private Context mContext;
    private MutableLiveData<Boolean> isShowLoading;

    public UploadProgressVM(@NonNull Application application) {
        super(application);
        mContext = application.getApplicationContext();
    }

    public MutableLiveData<Boolean> getIsShowLoading() {
        if (isShowLoading == null) {
            isShowLoading = new MutableLiveData<>();
            isShowLoading.setValue(false);
        }
        return isShowLoading;
    }
}
